function text_article (content) {
    content = content
    .replace(/<h1([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h1')
    .replace(/<h1([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h1')
    .replace(/<h1>/ig, '<h1 class="font-20 bold-1000 mb-20">')

    .replace(/<h2([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h2')
    .replace(/<h2([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h2')
    .replace(/<h2>/ig, '<h2 class="font-19 bold-1000 mb-20">')

    .replace(/<img([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<img')
    .replace(/<img([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<img')
    .replace(/<img/ig, '<img class="img-style"')

    .replace(/<h3([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h3')
    .replace(/<h3([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h3')
    .replace(/<h3>/ig, '<h3 class="font-18 bold-1000 mb-20">')

    .replace(/<h4([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h4')
    .replace(/<h4([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h4')
    .replace(/<h4>/ig, '<h4 class="font-17 bold-1000 mb-20">')

    .replace(/<h5([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h5')
    .replace(/<h5([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h5')
    .replace(/<h5>/ig, '<h5 class="font-16 bold-1000 mb-20">')

    .replace(/<h6([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h6')
    .replace(/<h6([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h6')
    .replace(/<h6>/ig, '<h6 class="font-15 bold-1000 mb-20">')

    .replace(/<p([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<p')
    .replace(/<p([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<p')
    .replace(/<p>/ig, '<p class="font-14 mb-20">')

    .replace(/<ul([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<ul')
    .replace(/<ul([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<ul')
    .replace(/<ul>/ig, '<ul class="font-14 mb-20">')
    
    .replace(/<ol([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<ol')
    .replace(/<ol([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<ol')
    .replace(/<ol>/ig, '<ol class="font-14 mb-20>')
    
    return content
}

function text (content) {
  content = content
  .replace(/<h1([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h1')
  .replace(/<h1([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h1')
  .replace(/<h1>/ig, '<h1 class="h1-style">')
  
  .replace(/<h2([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h2')
  .replace(/<h2([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h2')
  .replace(/<h2>/ig, '<h2 class="h2-style">')

  .replace(/<h3([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<h3')
  .replace(/<h3([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<h3')
  .replace(/<h3>/ig, '<h3 class="h3-style">')

  .replace(/<p([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<p')
  .replace(/<p([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<p')
  .replace(/<p>/ig, '<p class="p-style">')

  .replace(/<ul([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<ul')
  .replace(/<ul([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<ul')
  .replace(/<ul>/ig, '<ul class="ul-style">')

  .replace(/<strong([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<strong')
  .replace(/<strong([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<strong')
  .replace(/<strong>/ig, '<strong class="strong-style">')

  .replace(/<li([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<li')
  .replace(/<li([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<li')
  .replace(/<li>/ig, '<li class="li-style">')
  
  .replace(/<ol([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<ol')
  .replace(/<ol([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<ol')
  .replace(/<ol>/ig, '<ol class="ol-style">')

  .replace(/<img([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<img')
  .replace(/<img/ig, '<img class="img-style"')

  .replace(/<span([\s\w"=\/\.:;]+)((?:(style="[^"]+")))/ig, '<span')
  .replace(/<span([\s\w"=\/\.:;]+)((?:(class="[^"]+")))/ig, '<span')
  .replace(/<span>/ig, '<span class="span-style">')
  
  return content
}
module.exports ={
  text_article : text_article,
  text:text
}